# python自带的模块

import time
import urllib.request

print('---------------使用time----------------')
from time import strftime, localtime
print(time.time())
print(time.time_ns())
print('my name:%s'%time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
print('my name2:%s'%time.strftime("%a %b %d %H:%M:%S %Y", time.localtime()))
# 打印当前时间
print(strftime("%Y-%m-%d %H:%M:%S", localtime()))

print('---------------使用urllib网络请求----------------')
print(urllib.request.urlopen('http://www.baidu.com').read())

